package cn.edu.fzu.homemaking.domain.entity;

import cn.edu.fzu.homemaking.domain.enums.DemandStatusEnum;
import cn.edu.fzu.homemaking.domain.enums.SexEnum;
import cn.edu.fzu.homemaking.domain.enums.StatusEnum;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;

@Data
public class User {

    @JSONField(name = "customerId")
    private Long       id;

    //邮箱
    private String     email;

    //密码
    @JSONField(serialize = false)
    private String     password;

    //姓名
    private String     name;

    //性别
    private SexEnum    sex;

    //出生年月
    @JSONField(format = "yyyy-MM-dd")
    private Date       birth;

    //手机号码
    private String     phone;

    //家庭地址
    private String     address;

    //人脸照片
    private String     faceUrl;

    //状态
    private StatusEnum status;

    //创建时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date       createTime;

    //更新时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date       updateTime;
}
